home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
admin
/
linuxcon.000
/
linuxcon
/
linuxconf-1.6
/
dialog
/
dialog.pm
< prev
next >
Wrap
Text File
|
1996-07-31
|
11KB
|
280 lines
/* _dict.c 14/04/96 23.56.26 */
/* base64.c 16/07/96 01.22.14 */
/* buttons.c 02/06/96 16.34.14 */
PUBLIC int BUTTONS_INFO::evalwidth (void);
PUBLIC BUTTONS_INFO::BUTTONS_INFO (void);
PUBLIC void BUTTONS_INFO::set (int _but_options, const char *_helpfile);
PUBLIC void BUTTONS_INFO::setup (int _y, int width);
PUBLIC void BUTTONS_INFO::setcursor (WINDOW *dialog, int button);
PUBLIC void BUTTONS_INFO::draw (WINDOW *dialog, int button);
PRIVATE void BUTTONS_INFO::help (WINDOW *win);
PUBLIC MENU_STATUS BUTTONS_INFO::dokey (WINDOW *dialog,
int key,
int &selected,
int other_focus);
/* checkbox.c 23/07/96 00.01.58 */
PUBLIC FIELD_CHECK_RADIO::FIELD_CHECK_RADIO (const char *_prompt,
char &_var,
const char *_title);
PUBLIC FIELD_CHECK_RADIO::~FIELD_CHECK_RADIO (void);
PUBLIC void FIELD_CHECK_RADIO::restore (void);
PUBLIC void FIELD_CHECK_RADIO::save (void);
PUBLIC void FIELD_CHECK_RADIO::setcursor (WINDOW *dialog);
PUBLIC void FIELD_CHECK_RADIO::drawtxt_check (WINDOW *dialog,
char openchar,
char closechar,
char selchar);
PUBLIC void FIELD_CHECK_RADIO::format_htmlkey (char *key, int nof);
PUBLIC FIELD_CHECK::FIELD_CHECK (const char *_prompt,
char &_var,
const char *_title);
PUBLIC void FIELD_CHECK::drawtxt (WINDOW *dialog);
PUBLIC void FIELD_CHECK::html_draw (int nof);
PUBLIC int FIELD_CHECK::html_validate (int nof);
PUBLIC void FIELD_CHECK::dokey (WINDOW *dialog, int key, FIELD_MSG&);
PUBLIC FIELD_CHECK *DIALOG::newf_chk (const char *prompt,
char &var,
const char *title);
/* checklist.c 28/12/95 01.26.46 */
/* checklist1.c 19/06/95 22.37.02 */
/* cmdsock.c 12/05/96 00.14.12 */
PRIVATE void CMDSOCK::init (int port);
PUBLIC CMDSOCK::CMDSOCK (const char *portname);
PUBLIC CMDSOCK::CMDSOCK (int port);
PUBLIC CMDSOCK::~CMDSOCK (void);
PUBLIC int CMDSOCK::is_ok (void);
PUBLIC void CMDSOCK::closecli (int fd);
PUBLIC void CMDSOCK::addcli (int fd, int timeout);
PUBLIC void CMDSOCK::addcli (int fd);
PUBLIC int CMDSOCK::listen (long timeout);
PUBLIC int CMDSOCK::getnbcli (void);
PUBLIC int CMDSOCK::readnext (void *buf, int size, int &cli);
/* def.c 30/03/96 00.21.00 */
/* diaetc.c 24/03/96 20.49.38 */
/* dialog.c 02/06/96 16.48.12 */
PUBLIC void DIALOG::save (void);
PUBLIC void DIALOG::restore (void);
PUBLIC int DIALOG::was_modified (void);
PUBLIC FIELD *DIALOG::getitem (int no);
PUBLIC FIELD_MSG::FIELD_MSG (void);
PUBLIC void DIALOG::seticon (const char *_icon);
/* fcombo.c 27/08/95 13.02.36 */
PUBLIC ELM_STR::ELM_STR (const char *_value, const char *_verbose);
PUBLIC ELM_STR::~ELM_STR (void);
PUBLIC ELM_STR *LIST_STR::getitem (int no);
PUBLIC FIELD_COMBO::FIELD_COMBO (const char *_prompt, SSTRING&_str);
PUBLIC FIELD_COMBO::~FIELD_COMBO (void);
PUBLIC void FIELD_COMBO::addopt (const char *str);
PUBLIC void FIELD_COMBO::addopt (const char *value,
const char *verbose);
PROTECTED void FIELD_COMBO::assist (WINDOW *dialog);
PUBLIC FIELD_COMBO *DIALOG::newf_combo (const char *prompt,
SSTRING&str);
/* fcombom.c 15/12/95 23.50.02 */
PUBLIC ELM_STR_V::ELM_STR_V (const char *_str, char &_selected);
PUBLIC FIELD_COMBO_MANY::FIELD_COMBO_MANY (const char *_prompt,
SSTRING&_str);
PUBLIC void FIELD_COMBO_MANY::addopt (const char *str, char &selected);
PROTECTED void FIELD_COMBO_MANY::assist (WINDOW *dialog);
PUBLIC FIELD_COMBO_MANY *DIALOG::newf_combo_many (const char *prompt,
SSTRING&str);
/* field.c 22/07/96 23.57.44 */
PUBLIC FIELD::FIELD (const char *_prompt);
PUBLIC VIRTUAL FIELD::~FIELD (void);
PUBLIC int FIELD::is_readonly (void);
PUBLIC void FIELD::set_readonly (void);
PROTECTED VIRTUAL void FIELD::processmsg (WINDOW *, FIELD_MSG&, int);
PROTECTED VIRTUAL int FIELD::getwidth1 (void);
PROTECTED VIRTUAL void FIELD::setwidth1 (int);
PUBLIC VIRTUAL const char *FIELD::getmenustr (void);
PUBLIC VIRTUAL void FIELD::format_htmlkey (char *key, int nof);
PRIVATE void FIELD_STRING_BASE::init (int maxsiz);
PROTECTED FIELD_STRING_BASE::FIELD_STRING_BASE (const char *_prompt,
const char *_str,
int maxsiz);
PROTECTED FIELD_STRING_BASE::FIELD_STRING_BASE (const char *_prompt,
int maxsiz);
PUBLIC FIELD_STRING_BASE::~FIELD_STRING_BASE (void);
PUBLIC FIELD_STRING::FIELD_STRING (const char *_prompt,
char *_str,
int maxsiz);
PUBLIC FIELD_STRING::~FIELD_STRING (void);
PUBLIC FIELD_PASSWORD::FIELD_PASSWORD (const char *_prompt,
SSTRING&_str);
PUBLIC void FIELD_STRING::save (void);
PUBLIC void FIELD_STRING::restore (void);
PUBLIC void FIELD_STRING_BASE::drawtxt (WINDOW *dialog);
PUBLIC void FIELD_STRING_BASE::html_draw (int nof);
PUBLIC int FIELD_STRING_BASE::html_validate (int nof);
PUBLIC void FIELD::draw (WINDOW *dialog);
PUBLIC VIRTUAL void FIELD::setcursor (WINDOW *dialog);
PUBLIC VIRTUAL void FIELD::unselect (WINDOW *);
PUBLIC void FIELD_STRING_BASE::setcursor (WINDOW *dialog);
PUBLIC void FIELD_STRING_BASE::dokey (WINDOW *dialog,
int key,
FIELD_MSG&);
PUBLIC FIELD_SSTRING::FIELD_SSTRING (const char *_prompt,
SSTRING&_str);
PUBLIC void FIELD_SSTRING::save (void);
PUBLIC void FIELD_SSTRING::restore (void);
PUBLIC void FIELD_SSTRING::html_draw (int nof);
PUBLIC FIELD_STRING *DIALOG::newf_str (const char *prompt,
char *str,
int maxsiz);
PUBLIC FIELD_SSTRING *DIALOG::newf_str (const char *prompt,
SSTRING&str);
PUBLIC FIELD_PASSWORD *DIALOG::newf_pass (const char *prompt,
SSTRING&str);
/* fldnum.c 22/07/96 23.58.54 */
PUBLIC FIELD_INTEGER::FIELD_INTEGER (const char *_prompt, int &_val);
PROTECTED void FIELD_INTEGER::dokey (WINDOW *w,
int key,
FIELD_MSG&msg);
PUBLIC void FIELD_INTEGER::html_draw (int nof);
PUBLIC void FIELD_INTEGER::save (void);
PUBLIC void FIELD_INTEGER::restore (void);
PUBLIC FIELD *DIALOG::newf_num (const char *prompt, int &val);
/* fstrhelp.c 05/10/95 23.38.10 */
PUBLIC FIELD_STRING_HELP::FIELD_STRING_HELP (const char *_prompt,
SSTRING&_str);
PUBLIC void FIELD_STRING_HELP::drawtxt (WINDOW *dialog);
PUBLIC void FIELD_STRING_HELP::dokey (WINDOW *dialog,
int key,
FIELD_MSG&msg);
/* ftitle.c 19/07/96 11.04.24 */
PUBLIC FIELD_TITLE::FIELD_TITLE (const char *_prompt,
const char *_str);
PUBLIC void FIELD_TITLE::drawtxt (WINDOW *win);
PUBLIC void FIELD_TITLE::html_draw (int);
PUBLIC int FIELD_TITLE::html_validate (int);
PUBLIC void DIALOG::newf_title (const char *prompt, const char *msg);
/* html.c 23/07/96 00.03.18 */
PRIVATE void DIALOG::html_draw_top (void);
PRIVATE void DIALOG::html_draw_intro (void);
PRIVATE void DIALOG::html_draw_fields (void);
PRIVATE void DIALOG::html_draw_form (void);
PRIVATE void DIALOG::html_draw_end (void);
PRIVATE void DIALOG::html_draw (DIALOG *spc);
PRIVATE void DIALOG::html_draw (void);
PRIVATE int DIALOG::html_validate (void);
PUBLIC void BUTTONS_INFO::html_draw (void);
PRIVATE MENU_STATUS DIALOG::edithtml (int &nof);
/* inputbox.c 07/11/95 23.34.36 */
/* internal.c 05/10/95 23.26.44 */
/* kbd.c 09/03/96 23.28.14 */
/* main.c 04/12/95 00.07.50 */
/* menubox.c 19/07/96 11.33.34 */
PUBLIC FIELD_MENU::FIELD_MENU (const char *_tag, const char *_str);
PUBLIC FIELD_MENU::~FIELD_MENU (void);
PUBLIC void FIELD_MENU::format_htmlkey (char *key, int);
PUBLIC void FIELD_MENU::setwidth1 (int _column2);
PROTECTED int FIELD_MENU::getwidth1 (void);
PUBLIC const char *FIELD_MENU::getmenustr (void);
PROTECTED void FIELD_MENU::save (void);
PROTECTED void FIELD_MENU::restore (void);
PROTECTED void FIELD_MENU::dokey (WINDOW *, int , FIELD_MSG&);
PUBLIC void FIELD_MENU::drawgen (WINDOW *win, int selected);
PUBLIC void FIELD_MENU::unselect (WINDOW *dialog);
PUBLIC void FIELD_MENU::setcursor (WINDOW *dialog);
PUBLIC void FIELD_MENU::drawtxt (WINDOW *dialog);
PUBLIC void FIELD_MENU::html_draw (int nof);
PUBLIC int FIELD_MENU::html_validate (int);
PRIVATE void DIALOG::fixwidth1 (void);
PUBLIC void DIALOG::new_menuitem (const char *prompt1,
const char *prompt2);
PUBLIC void DIALOG::new_menuitem (const char *prompt1,
const SSTRING&prompt2);
PUBLIC void DIALOG::new_menuitem (const SSTRING&prompt1,
const SSTRING&prompt2);
PUBLIC const char *DIALOG::getmenustr (int choice);
PUBLIC void DIALOG::savewhat (const char *help);
PUBLIC void DIALOG::delwhat (const char *help);
PUBLIC void DIALOG::inswhat (const char *help);
PUBLIC void DIALOG::addwhat (const char *help);
PUBLIC MENU_STATUS DIALOG::editmenu (const char *title,
const char *prompt,
const char *helpfile,
int &sel,
int options);
PUBLIC MENU_STATUS DIALOG::editmenu (const char *title,
const char *prompt,
HELP_FILE&helpfile,
int &sel,
int options);
/* msgbox.c 02/06/96 23.26.46 */
/* multi.c 18/06/96 01.05.26 */
PRIVATE void DIALOG::setup (void);
PRIVATE void DIALOG::setoffset (int newoff);
PROTECTED void DIALOG::drawf (WINDOW *dialog);
PRIVATE void DIALOG::processmsg (WINDOW *dialog, FIELD_MSG&msg);
PRIVATE void DIALOG::draw (WINDOW *dialog);
PRIVATE void DIALOG::drawarrow_if (WINDOW *win,
bool condition,
bool&flag,
bool top,
chtype carac);
PROTECTED VIRTUAL int DIALOG::keymove (WINDOW *dialog,
int key,
int &nof);
PUBLIC DIALOG::DIALOG (void);
PUBLIC DIALOG::~DIALOG (void);
PUBLIC MENU_STATUS DIALOG::edit (const char *_title,
const char *_intro,
const char *helpfile,
int &nof,
int but_options);
PUBLIC MENU_STATUS DIALOG::edit (const char *_title,
const char *_intro,
HELP_FILE&helpfile,
int &nof,
int but_options);
PUBLIC MENU_STATUS DIALOG::edit (const char *_title,
const char *intro,
const char *helpfile,
int nof);
PUBLIC MENU_STATUS DIALOG::edit (const char *_title,
const char *intro,
HELP_FILE&helpfile,
int nof);
/* radio.c 22/07/96 23.54.12 */
PUBLIC FIELD_RADIO::FIELD_RADIO (const char *_prompt,
char &_var,
char _instance_val,
const char *_title);
PUBLIC FIELD_RADIO::~FIELD_RADIO (void);
PUBLIC void FIELD_RADIO::drawtxt (WINDOW *dialog);
PRIVATE FIELD_RADIO *FIELD_RADIO::locate_key (char *key);
PUBLIC void FIELD_RADIO::html_draw (int);
PUBLIC int FIELD_RADIO::html_validate (int);
PUBLIC void FIELD_RADIO::dokey (WINDOW *, int key, FIELD_MSG&msg);
PROTECTED void FIELD_RADIO::processmsg (WINDOW *dialog,
FIELD_MSG&msg,
int drawok);
PUBLIC FIELD_RADIO *DIALOG::newf_radio (const char *prompt,
char &var,
char instance_val,
const char *title);
/* rc.c 28/12/95 01.26.18 */
/* term.c 01/06/96 13.06.18 */
PRIVATE void DIALOG::showtimeout (WINDOW *win);
PRIVATE MENU_STATUS DIALOG::editterm (int &nof, int but_options);
/* textbox.c 31/07/96 22.20.42 */
PUBLIC FIELD_TEXTBOX::FIELD_TEXTBOX (char *_buf);
PUBLIC void FIELD_TEXTBOX::drawtxt (WINDOW *dialog);
PUBLIC void FIELD_TEXTBOX::html_draw (int);
PUBLIC int FIELD_TEXTBOX::html_validate (int);
PUBLIC DIALOG_TEXTBOX::DIALOG_TEXTBOX (void);
PROTECTED int DIALOG_TEXTBOX::keymove (WINDOW *dialog,
int key,
int &nof);
/* varval.c 22/07/96 21.29.38 */
PUBLIC HTML_VARVAL::HTML_VARVAL (const char *key);
PUBLIC void HTML_VARVAL::add (const char *var, const char *val);
PUBLIC int HTML_VARVAL::getnb (void);
PUBLIC const char *HTML_VARVAL::getval (const char *var);
PUBLIC const char *HTML_VARVAL::getval (int no);
PUBLIC const char *HTML_VARVAL::getvar (int no);
PUBLIC int HTML_VARVAL::exist (const char *var);
PUBLIC const char *HTML_VARVAL::getcontext (void);
/* yesno.c 03/08/95 22.25.26 */